package cn.edu.hgu.bean;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * GovRoleInfo entity. @author MyEclipse Persistence Tools
 */

public class GovRoleInfo implements java.io.Serializable {

	// Fields
	private Integer id;            
	//private Integer govId;         //采购单位ID
	private String roleName;       //角色名称
	private Integer pid;           //上级角色ID
	private String parentRoleName; //上级角色名称
	private String savetext;       //存储序列
	private Date saveTime;         //保存时间
	private String remark;         //备注
	private Integer lockStatus;    //锁定状态,0:开放,1:锁定
	private GovernmentInfo governmentiNfo;
	private Set<GovAccountInfo> govAccount = new HashSet<GovAccountInfo>();
	private Set<GovRoleDeploy> govRole = new HashSet<GovRoleDeploy>();
	// Constructors

	/** default constructor */
	public GovRoleInfo() {
	}

	/** full constructor */
	public GovRoleInfo(Integer govId, String roleName, Integer pid,
			String parentRoleName, String savetext, Date saveTime,
			String remark, Integer lockStatus) {
		//this.govId = govId;
		this.roleName = roleName;
		this.pid = pid;
		this.parentRoleName = parentRoleName;
		this.savetext = savetext;
		this.saveTime = saveTime;
		this.remark = remark;
		this.lockStatus = lockStatus;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	/*public Integer getGovId() {
		return this.govId;
	}

	public void setGovId(Integer govId) {
		this.govId = govId;
	}*/

	public String getRoleName() {
		return this.roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public Integer getPid() {
		return this.pid;
	}

	public void setPid(Integer pid) {
		this.pid = pid;
	}

	public String getParentRoleName() {
		return this.parentRoleName;
	}

	public void setParentRoleName(String parentRoleName) {
		this.parentRoleName = parentRoleName;
	}

	public String getSavetext() {
		return this.savetext;
	}

	public void setSavetext(String savetext) {
		this.savetext = savetext;
	}

	public Date getSaveTime() {
		return this.saveTime;
	}

	public void setSaveTime(Date saveTime) {
		this.saveTime = saveTime;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Integer getLockStatus() {
		return this.lockStatus;
	}

	public void setLockStatus(Integer lockStatus) {
		this.lockStatus = lockStatus;
	}

	public Set<GovAccountInfo> getGovAccount() {
		return govAccount;
	}

	public void setGovAccount(Set<GovAccountInfo> govAccount) {
		this.govAccount = govAccount;
	}

	public Set<GovRoleDeploy> getGovRole() {
		return govRole;
	}

	public void setGovRole(Set<GovRoleDeploy> govRole) {
		this.govRole = govRole;
	}

	public GovernmentInfo getGovernmentiNfo() {
		return governmentiNfo;
	}

	public void setGovernmentiNfo(GovernmentInfo governmentiNfo) {
		this.governmentiNfo = governmentiNfo;
	}
	
	
}